package com.itmk.web.jubao.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itmk.web.jubao.entity.JuBao;
import com.itmk.web.jubao.entity.JuBaoParm;
import com.itmk.web.jubao.entity.ReportVo;
import com.itmk.web.jubao.mapper.JuBaoMapper;
import com.itmk.web.jubao.service.JuBaoService;
import org.springframework.stereotype.Service;

@Service
public class JuBaoServiceImpl extends ServiceImpl<JuBaoMapper, JuBao> implements JuBaoService {
    @Override
    public IPage<ReportVo> getList(JuBaoParm parm) {
        //构造分页对象
        IPage<ReportVo> page = new Page<>(parm.getCurrentPage(),parm.getPageSize());
        return this.baseMapper.getList(page);
    }
}
